<?PHP
include '../../m/constants.php';

$post = $_POST;
$id = $post['playlist'];

 if(!empty($post['playlist']))
 {
	$sql = "select id from content_video where playlist=$id";
	$result = mysql_query($sql);
	$row = mysql_fetch_array($result);
	$content_id = $row['id'];
	$data['cid'] = $content_id;
	process_sql_post($post,'content','update','id',$content_id);
	mp("sequence updated");
 }
 echo json_encode($data);
?>